# $OpenBSD: Makefile,v 1.10 2017/06/09 13:32:29 sthen Exp $

ONLY_FOR_ARCHS=	amd64 i386

COMMENT=	dump DMI/SMBIOS contents in human-readable format
DISTNAME=	dmidecode-3.1
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_SAVANNAH:=dmidecode/}

HOMEPAGE=	http://www.nongnu.org/dmidecode/

# GPLv2+
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB=	c

MAKE_FLAGS=	CC="${CC}"
FAKE_FLAGS=	DESTDIR="${WRKINST}" prefix="${WRKINST}${PREFIX}" \
		mandir="${WRKINST}${PREFIX}/man"
NO_TEST=	Yes

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dmidecode/
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dmidecode/

.include <bsd.port.mk>
